<?php
/**
 * @author shuang
 * @date 2016-11-8 10:15:43
 */
use yii\helpers\Url;
?>
<nav class="bar bar-tab">
    <a class="tab-item <?php echo (strtolower($this->context->id) == "site" || strtolower($this->context->id) == "article" )? "active" : null;?>" href="<?php echo Url::toRoute(["site/index"]);?>">
        <span class="icon iconfont i-home"></span>
        <span class="tab-label">首页</span>
    </a>
    <a class="tab-item <?php echo strtolower($this->context->id) == "task" ? "active" : null;?>" data-no-cache="true" href="<?php echo Url::toRoute(["task/center"]);?>">
        <span class="icon iconfont i-squa-check"></span>
        <span class="tab-label">任务中心</span>
    </a>
    <a class="tab-item <?php echo (strtolower($this->context->id) == "profile" ||  strtolower($this->context->id) == "account") ? "active" : null;?>" href="<?php echo Url::toRoute(["profile/info"]);?>">
        <span class="icon iconfont i-my"></span>
        <span class="tab-label">个人中心</span>
    </a>
</nav>